package com.liugui.springbootthreadpool.controller;

import com.liugui.springbootthreadpool.service.AsyncService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author LiuGui
 * @Date 2022年01月15日 11:25:00
 **/
@RestController
public class AsyncController {

    @Resource
    private AsyncService asyncService;

    @GetMapping("/sayHello")
    public String sayHelloAsync(){

        asyncService.executeAsync();

        return "";
    }
}
